package com.koocloud.electroplatemanage.service;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.pojo.Quotation;
import com.koocloud.electroplatemanage.pojo.TypeWorkVo;

import java.util.List;

/**
 * @program:
 * @description: 镀槽服务层接口
 * @author: wjx
 * @create: 2020/11/12 17:55
 */

public interface QuotationService {
    //通过pk查询一条记录 delete_flag = "1"
    ResponseTemplate selectByPk(int pkQuotation);

    /**
     * 通过镀种名称查询一条记录
     * @param name
     * @return
     */
    ResponseTemplate selectByName(String name);

    /**
     * 查询所有的最新修改时间的镀种
     * @param page
     * @param limit
     * @param quotation
     * @return
     */
    ResponseTemplate selectAllData(String page, String limit, Quotation quotation);

    //查询所有关于该名字的记录
    ResponseTemplate selectAllByName(String page, String limit,String name);

    //插入一条记录
    ResponseTemplate insert(Quotation quotation);

    //批量插入记录
    ResponseTemplate batchInsert(List<Quotation> listQuotation);

    //逻辑删除一条记录
    ResponseTemplate delete(String pk,String deleteFlag);

    //通过pks批量逻辑删除记录
    ResponseTemplate batchDeleteByPks(List<String> listPks);
    //修改一条记录
    ResponseTemplate update(Quotation quotation);
}
